using Dew.Math;
using Dew.Math.Units;
namespace Dew.Examples()
{
void Example()
{
TOpenCLVector a,b;
clMtxVec.CreateIt(
out a,
out b);
try
{
a.CopyCplxFromArray(
new double[] {1,2,3,-4});
b.PhaseSpectrum(a);
// b = [arctan2(1,2), arctan2(3,-4)];
}
finally
{
clMtxVec.FreeIt(
ref a,
ref b);
}
}
}